import{reactive,toRefs} from '@vue/reactivity'
function HookNum(){
    const state = reactive({
        num:2,
        addNum(){
            state.num++
        }
    })
    const refState = toRefs(state);
    return refState
}
export default HookNum;